<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/limh/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/limh/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/limh/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/limh/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/limh/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/limh/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/limh/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="教程,">










<meta name="description" content="INT 20H —  终止程序运行   INT 22H —  终止处理程序的地址   INT 23H —  Ctrl+C处理程序   INT 24H —  致命错误处理程序   INT 25H —  读磁盘扇区(忽略逻辑结构)   INT  26H —  写磁盘扇区(忽略逻辑结构)   INT 27H —  终止，并驻留在内存   INT 28H —  DOS空闲   INT 2FH  —">
<meta name="keywords" content="教程">
<meta property="og:type" content="article">
<meta property="og:title" content="13、其它DOS中断">
<meta property="og:url" content="https://tdnr.gitee.io/limh/2015/04/01/asm72/index.html">
<meta property="og:site_name" content="土逗牛肉">
<meta property="og:description" content="INT 20H —  终止程序运行   INT 22H —  终止处理程序的地址   INT 23H —  Ctrl+C处理程序   INT 24H —  致命错误处理程序   INT 25H —  读磁盘扇区(忽略逻辑结构)   INT  26H —  写磁盘扇区(忽略逻辑结构)   INT 27H —  终止，并驻留在内存   INT 28H —  DOS空闲   INT 2FH  —">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-01-24T08:47:19.208Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="13、其它DOS中断">
<meta name="twitter:description" content="INT 20H —  终止程序运行   INT 22H —  终止处理程序的地址   INT 23H —  Ctrl+C处理程序   INT 24H —  致命错误处理程序   INT 25H —  读磁盘扇区(忽略逻辑结构)   INT  26H —  写磁盘扇区(忽略逻辑结构)   INT 27H —  终止，并驻留在内存   INT 28H —  DOS空闲   INT 2FH  —">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/limh/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://tdnr.gitee.io/limh/2015/04/01/asm72/">





  <title>13、其它DOS中断 | 土逗牛肉</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans ">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/limh/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">土逗牛肉</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/limh/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/limh/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/limh/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/limh/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/limh/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://tdnr.gitee.io/limh/limh/2015/04/01/asm72/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="土逗牛肉">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/limh/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="土逗牛肉">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">13、其它DOS中断</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-01T20:36:37+08:00">
                2015-04-01
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/limh/categories/汇编教程/" itemprop="url" rel="index">
                    <span itemprop="name">汇编教程</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <table> <tbody><tr> <td>INT 20H —</td>  <td>终止程序运行</td> </tr> <tr> <td>INT 22H —</td>  <td>终止处理程序的地址</td> </tr> <tr> <td>INT 23H —</td>  <td>Ctrl+C处理程序</td> </tr> <tr> <td>INT 24H —</td>  <td>致命错误处理程序</td> </tr> <tr> <td>INT 25H —</td>  <td>读磁盘扇区(忽略逻辑结构)</td> </tr> <tr> <td>INT  26H —</td>  <td>写磁盘扇区(忽略逻辑结构)</td> </tr> <tr> <td>INT 27H —</td>  <td>终止，并驻留在内存</td> </tr> <tr> <td>INT 28H —</td>  <td>DOS空闲</td> </tr> <tr> <td>INT 2FH  —</td>  <td>多重中断服务</td> </tr><br></tbody></table>

<h2 id="1-、中断INT-20H"><a href="#1-、中断INT-20H" class="headerlink" title="(1)、中断INT 20H"></a>(1)、中断INT 20H</h2><table><tbody><tr><td>功能描述：</td><td>终止当前正在运行的程序，它是几种终止程序运行方法之一</td> </tr><tr><td>入口参数：</td><td>CS＝PSP的段地址</td></tr><tr><td>出口参数：</td><td>无</td></tr></tbody></table>

<h2 id="2-、中断INT-22H"><a href="#2-、中断INT-22H" class="headerlink" title="(2)、中断INT 22H"></a>(2)、中断INT 22H</h2><table><tbody><tr><td></td><td>功能描述：</td><td>终止处理程序的地址，该地址在程序装入内存运行前被放入PSP的0AH~0DH的单元内。该中断指令从不直接书写在程序之中</td> </tr></tbody></table>

<h2 id="3-、中断INT-23H"><a href="#3-、中断INT-23H" class="headerlink" title="(3)、中断INT 23H"></a>(3)、中断INT 23H</h2><table><tbody><tr><td></td><td>功能描述：</td><td>Ctrl+C处理程序。该中断指令从不直接书写在程序之中</td> </tr></tbody></table>

<h2 id="4-、中断INT-24H"><a href="#4-、中断INT-24H" class="headerlink" title="(4)、中断INT 24H"></a>(4)、中断INT 24H</h2><table><tbody><tr><td></td><td>功能描述：</td><td>致命错误处理程序。该中断指令从不直接书写在程序之中</td> </tr></tbody></table>

<h2 id="5-、中断INT-25H"><a href="#5-、中断INT-25H" class="headerlink" title="(5)、中断INT 25H"></a>(5)、中断INT 25H</h2><table><tbody><tr><td>功能描述：</td><td>绝对读磁盘，直接从逻辑设备中读出数据到内存单元中</td> </tr><tr><td>入口参数：</td><td>AL＝驱动器号(0=A、1=B、……)<table><tbody><tr><td><p>分区容量≤32M，有：</p></td><td>CX＝读出的扇区数<br>DX＝起始扇区数<br>DS:BX＝存放数据缓冲区的地址</td></tr><tr><td><p>否则，有：</p></td><td>CX＝-1<br>DS:BX＝参数块缓冲区的地址，该参数块的结构如下：<table><tbody><tr><td>字节</td><td>描述</td></tr><tr><td>00~03H</td><td>32位扇区数</td></tr><tr><td>04~05H </td><td>将被读出的扇区数</td></tr><tr><td>06~07H</td><td>存放数据的缓冲区的偏移量</td></tr><tr><td>08~09H</td><td>存放数据的缓冲区的段地址</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td>出口参数：</td><td>CF＝0——操作成功，否则，AX＝错误号，其含义见下错误代码表<table><tbody><tr><td>错误代码</td><td>错误含义</td></tr><tr><td>80H</td><td>附件响应失败</td></tr><tr><td>40H</td><td>定位操作失败</td></tr><tr><td>20H</td><td>设备控制器失败</td></tr><tr><td>10H</td><td>数据错(错误的CRC)</td></tr><tr><td>08H </td><td>DMA失败</td></tr><tr><td>04H</td><td>需要的扇区未发现</td></tr><tr><td>02H</td><td>错误的地址标志</td></tr><tr><td>01H</td><td>错误命令</td></tr></tbody></table></td></tr></tbody></table>

<h2 id="6-、INT-26H"><a href="#6-、INT-26H" class="headerlink" title="(6)、INT 26H"></a>(6)、INT 26H</h2><table><tbody><tr><td>功能描述：</td><td>绝对写磁盘，直接把内存单元中的内容写入逻辑设备</td> </tr><tr><td>入口参数：</td><td>与前面的INT 25H相一致</td></tr><tr><td>出口参数：</td><td>与前面的INT 25H相一致</td></tr></tbody></table>

<h2 id="7-、INT-27H"><a href="#7-、INT-27H" class="headerlink" title="(7)、INT 27H"></a>(7)、INT 27H</h2><table><tbody><tr><td>功能描述：</td><td>终止，并驻留在内存</td> </tr><tr><td>入口参数：</td><td>CS＝PSP的段值<br>DX＝被保护程序最后一个字节的偏移量再加1</td></tr><tr><td>出口参数：</td><td>无</td></tr></tbody></table>

<h2 id="8-、INT-28H"><a href="#8-、INT-28H" class="headerlink" title="(8)、INT 28H"></a>(8)、INT 28H</h2><table><tbody><tr><td>功能描述：</td><td>DOS空闲中断</td> </tr><tr><td>入口参数：</td><td>无</td></tr><tr><td>出口参数：</td><td>无</td></tr></tbody></table>

<h2 id="9-、INT-2FH"><a href="#9-、INT-2FH" class="headerlink" title="(9)、INT 2FH"></a>(9)、INT 2FH</h2><table><tbody><tr><td>功能描述：</td><td>多重中断服务，允许多个驻留程序通过单个中断与其它进程通信。</td> </tr><tr><td>入口参数：</td><td>AH＝标识号，AL＝功能号，功能号及其含义如下：<table><tbody><tr><td>功能号</td><td>功能描述</td></tr><tr><td>01H</td><td>假脱机打印</td></tr><tr><td>06H</td><td>驻留ASSIGN命令</td></tr><tr><td>10H</td><td>驻留SHARE命令</td></tr><tr><td>B7H</td><td>驻留APPEND命令</td></tr></tbody></table></td></tr><tr><td>出口参数：</td><td>若入口AL为0，则出口AL＝0FFH，否则，其值取决于处理程序</td></tr></tbody></table>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/limh/tags/教程/" rel="tag"># 教程</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/limh/2015/04/01/asm71/" rel="next" title="12、鼠标功能中断INT 33H">
                <i class="fa fa-chevron-left"></i> 12、鼠标功能中断INT 33H
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/limh/2018/06/19/kotlin1/" rel="prev" title="Kotlin单例的五种写法">
                Kotlin单例的五种写法 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="SOHUCS"></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/limh/images/avatar.jpg" alt="土逗牛肉">
            
              <p class="site-author-name" itemprop="name">土逗牛肉</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/limh/archives/">
              
                  <span class="site-state-item-count">255</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/limh/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/limh/tags/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/limhGeek" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:1591054297@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/f73b243e7cc9" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-user-circle-o"></i>简书</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-、中断INT-20H"><span class="nav-number">1.</span> <span class="nav-text">(1)、中断INT 20H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-、中断INT-22H"><span class="nav-number">2.</span> <span class="nav-text">(2)、中断INT 22H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-、中断INT-23H"><span class="nav-number">3.</span> <span class="nav-text">(3)、中断INT 23H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-、中断INT-24H"><span class="nav-number">4.</span> <span class="nav-text">(4)、中断INT 24H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-、中断INT-25H"><span class="nav-number">5.</span> <span class="nav-text">(5)、中断INT 25H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6-、INT-26H"><span class="nav-number">6.</span> <span class="nav-text">(6)、INT 26H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7-、INT-27H"><span class="nav-number">7.</span> <span class="nav-text">(7)、INT 27H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#8-、INT-28H"><span class="nav-number">8.</span> <span class="nav-text">(8)、INT 28H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#9-、INT-2FH"><span class="nav-number">9.</span> <span class="nav-text">(9)、INT 2FH</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">土逗牛肉</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
	var str = GetUrlParam('height');
    if (str === '0'){
		document.getElementById('header').style.display = 'none';
		document.getElementById('comments').style.display = 'none';
		document.getElementById('footer').style.display = 'none';
		document.getElementsByClassName('post-footer').item(0).style.display = 'none'
	}
	
    function GetUrlParam(paraName) {
        var url = document.location.toString();
        var arrObj = url.split("?");

        if (arrObj.length > 1) {
            var arrPara = arrObj[1].split("&");
            var arr;

            for (var i = 0; i < arrPara.length; i++) {
                 arr = arrPara[i].split("=");

                if (arr != null && arr[0] === paraName) {
                    return arr[1];
                }
            }
            return "";
        } else {
            return "";
        }
    }
</script>









  












  
  
    <script type="text/javascript" src="/limh/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/limh/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/limh/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/limh/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/limh/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/limh/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
